#!/bin/sh
REGISTRY_URL=192.168.0.133:5000
set +e
docker rm -f nginx-test1
docker rmi  test/nginx:1.0
docker build -t test/nginx:1.0 $WORKSPACE
#if docker ps -a|grep -i test/nginx;then
#	docker rm -f 
#fi
docker run -d -p 84:80 --name nginx-test1 test/nginx:1.0